package com.mowh.gof23.creational.patterns.factory.method;

import com.mowh.gof23.creational.patterns.factory.method.framework.Factory;
import com.mowh.gof23.creational.patterns.factory.method.framework.Product;
import com.mowh.gof23.creational.patterns.factory.method.idcard.IDCardFactory;

/**
 * @author mowh1gd
 * @create 2023/10/20 15:17
 */
public class Main {
    public static void main(String[] args) {
        Factory factory = new IDCardFactory();
        Product card1 = factory.create("小明");
        Product card2 = factory.create("小红");
        Product card3 = factory.create("小黄");
        card1.use();
        card2.use();
        card3.use();
    }
}
